package com.aneliya.server;

import com.aneliya.client.IClientFactory;
import com.aneliya.server.dispatcher.Dispatcher;

public class Server implements IServerImpl {
	
	private IServerImpl serverImpl;
	public void setServerImpl(IServerImpl serverImpl) {
		this.serverImpl = serverImpl;
	}
	
	public void setDispatcher(Dispatcher dispatcher) {
		serverImpl.setDispatcher(dispatcher);
	}
	
	public void setClientFactory(IClientFactory clientFactory) {
		serverImpl.setClientFactory(clientFactory);
	}

	public void start() {
		serverImpl.start();
	}

	public void stop() {
		serverImpl.stop();
	}

	public void handleClientConnections() {
		serverImpl.handleClientConnections();
	}

}
